import request from '@/utils/request'

// 查询广告管理列表
export function listPicture(query) {
  return request({
    url: '/business/picture/list',
    method: 'get',
    params: query
  })
}

// 查询广告管理所有列表
export function listAllPicture(query) {
  return request({
    url: '/business/picture/listAll',
    method: 'get',
    params: query
  })
}

// 查询广告管理详细
export function getPicture(id) {
  return request({
    url: '/business/picture/getInfo/' + id,
    method: 'get'
  })
}

// 新增广告管理
export function addPicture(data) {
  return request({
    url: '/business/picture/add',
    method: 'post',
    data: data
  })
}

// 修改广告管理
export function updatePicture(data) {
  return request({
    url: '/business/picture/edit',
    method: 'post',
    data: data
  })
}

// 删除广告管理
export function delPicture(id) {
  return request({
    url: '/business/picture/remove/' + id,
    method: 'get'
  })
}
